package com.jintoufs.domain.api.code;

/**
 * 公共返回码  <br>
 * (供继承使用，继承类的数值可用范围 [120-998] )
 * 
 * @author fuhuo.zhang
 * @since 2015-03-17
 */
public class ApiReturnCode {
    
    /**
     * 操作成功
     */
    public static final int HANDLE_SUCCESS = 0;
    
    /**
     * 必要字段为空
     */
    public static final int NULL_ELEMENT_ERROR = 101;
    
    /**
     * 字段超过了允许的最大长度
     */
    public static final int FIELD_TOO_LONG_ERROR = 102;
    
    /**
     * 参数值不正确
     */
    public static final int PARAM_VALUE_ERROR = 103;
    
    /**
     * 参数类型不正确
     */
    public static final int PARAM_TYPE_ERROR = 104;
    
    /**
     * 参数多余
     */
    public static final int EXCESS_PARAM_ERROR = 105;
    
    /**
     * HTTP接口错误
     */
    public static final int HTTP_VISITOR_ERROR = 106;
    
    /**
     * 数据库访问错误
     */
    public static final int DB_ACCESS_ERROR = 107;
    
    /**
     * ID号不存在
     */
    public static final int ID_NOT_EXIST_ERROR = 108;
    
    /**
     * 未知错误
     */
    public static final int UNKNOW_ERROR = 999;
}
